﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ClientPanel : MonoBehaviour
{
    public Button btn;
    public Text txt;
    void Start()
    {
        btn.onClick.AddListener(()=> { Client.Instance.OnClickConnectBtn(); });
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKey(KeyCode.D))
        {
            Client.Instance.index = 1;
            GameController.LoadScene(SceneEnum.Game);
        }
    }
}
